<div class="container-fluid">
    <div class="row">
        <div class="col-md-8">
            <?php
            foreach ($gits as $git):
                if(strtolower($git["type"] == "gitoschina")) :
            ?>
            <div class="github-project">
                <script src='http://git.oschina.net/helloqingbing/<?=$git['gname']?>/widget_preview'></script>
                <style>
                    .pro_name a{color: #4183c4;}
                    .osc_git_title{background-color: #d8e5f1;}
                    .osc_git_box{background-color: #fafafa;}
                    .osc_git_box{border-color: #ddd;}
                    .osc_git_info{color: #666;}
                    .osc_git_main a{color: #4183c4;}
                </style>
            </div>
            <?php else : ?>
            <div class="github-widget" data-repo="<?=$git['gname']?>"></div>

                <?php endif;?>
            <?php endforeach;?>
            <script type="text/javascript">
                $(function(){
                    $('.osc_git_box a,.github-widget a').attr('target','_blank');
                })
            </script>
        </div>
    </div>
</div>
